import request from './request'

const url = '/nebula-api'

// 获取登录授权的token
export const openGetToken = () => request.get(url + '/open/getToken');

// 获取走访信息详情 
export const GetVisitDateAPI = (params) => request.get(url + '/api/visit/' + params.id, { params })

// 新增走访信息
export const VisitaddAPI = (params) => request.post(url + '/api/visit', params)

// 客户列表
export const GetCustDateAPI = (params) => request.get(url + '/api/cust', { params })

// 走访列表信息
export const GetDateAPI = (params) => request.get(url + '/api/visit/', { params })